import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SEntityId } from "./SEntityId";
import { EGangFightsTeamPos } from "./EGangFightsTeamPos";
type int = number;
//class SGangFightsMyInfo
    
    export  class SGangFightsMyInfo extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SGangFightsMyInfo();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.teamId);
            arg1.writeInt(this.faceId);
            arg1.writeString(this.teamName);
            this.captainEntityId.__write(arg1);
            arg1.writeString(this.captainName);
            arg1.writeInt(this.teamMark);
            arg1.writeInt(this.teamWinNum);
            arg1.writeInt(this.teamLoseNum);
            arg1.writeInt(this.teamAllWarfare);
            arg1.writeInt(this.teamRank);
            this.pos.__write(arg1);
            arg1.writeInt(this.mark);
            arg1.writeInt(this.dayNum);
            arg1.writeInt(this.todayNum);
            arg1.writeBool(this.isNewCross);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.teamId = arg1.readInt();
            this.faceId = arg1.readInt();
            this.teamName = arg1.readString();
            this.captainEntityId = new SEntityId();
            this.captainEntityId.__read(arg1);
            this.captainName = arg1.readString();
            this.teamMark = arg1.readInt();
            this.teamWinNum = arg1.readInt();
            this.teamLoseNum = arg1.readInt();
            this.teamAllWarfare = arg1.readInt();
            this.teamRank = arg1.readInt();
            this.pos = EGangFightsTeamPos.__read(arg1);
            this.mark = arg1.readInt();
            this.dayNum = arg1.readInt();
            this.todayNum = arg1.readInt();
            this.isNewCross = arg1.readBool();
            return;
        }

        public /* const */_type: int=501;

        public /* var */teamId: int;

        public /* var */faceId: int;

        public /* var */teamName: string;

        public /* var */captainEntityId: SEntityId;

        public /* var */captainName: string;

        public /* var */teamMark: int;

        public /* var */teamWinNum: int;

        public /* var */teamLoseNum: int;

        public /* var */teamAllWarfare: int;

        public /* var */teamRank: int;

        public /* var */pos: EGangFightsTeamPos;

        public /* var */mark: int;

        public /* var */dayNum: int;

        public /* var */todayNum: int;

        public /* var */isNewCross: Boolean;

        public static /* var */_regist: SGangFightsMyInfo;
    }

            SGangFightsMyInfo._regist = new SGangFightsMyInfo(true);
        